<extend name="Base/base" />
<block name="button">
	<a href="{:U('oper')}" class="btn btn-primary"><i class="fa fa-plus"></i> {:L('text_add')}</a>
	<button class="btn btn-danger" data-toggle="btn-delete" confirm="{:L('warning_delete_title')}" confirm-info="{:L('warning_delete_text')}" type="submit" form="form"><i class="fa fa-trash"></i> {:L('text_delete')}</button>
</block>
<block name="body">
	<div class="panel panel-default">
		<div class="panel-heading">
			<h3><i class="fa fa-list"></i>   {$heading_title|default=L('heading_title')}</h3>
		</div>
		<div class="panel-body">
			<if condition="empty($list)">
				<h4 class="text-center">{:L('info_no_result')}</h4>
			<else/>
			<form method="post" action="{:U('del')}" enctype="multipart/form-data" id="form">
				<table class="table table-bordered table-hover">
					<thead>
						<tr>
						<th class="text-center" style="width:50px;"><input type="checkbox" data-toggle="js-checked-all"></th>
						<th>{:L('column_title')}</th>
						<th>{:L('column_key')}</th>
						<th>{:L('column_group')}</th>
						<th>{:L('column_type')}</th>
						<th>{:L('column_module')}</th>
						<th>{:L('column_sort_order')}</th>
						<th class="text-right action-column">{:L('text_action')}</th>
						</tr>
					</thead>
					<tbody>
						<foreach name="list" item="item">
						<tr>
							<td class="text-center"><input type="checkbox" name="selected[]" value="{$item.config_id}"></td>
							<td>{$item.title}</td>
							<td>{$item.key}</td>
							<td>{$item.group_title}</td>
							<td>{$type[$item['type']]}</td>
							<td>{$modules[$item['module']]}</td>
							<td>{$item.sort_order}</td>
							<td class="text-right">
								<a data-toggle="tooltip" title="{:L('text_edit')}" href="{:U('oper?config_id='.$item['config_id'],$url)}" class="btn btn-primary"><i class="fa fa-pencil"></i> </a>
							</td>
						</tr>
						</foreach>
					</tbody>
				</table>
			</form>
			</if>
		</div>
		<div class="panel-footer">
			<nav>
				<ul class="pagination">
				{$page}
				</ul>
			</nav>
		</div>
	</div>
</block>